<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加意向</title>
<link rel="stylesheet" type="text/css" href="${path}/css/base.css"/>
<link rel="stylesheet" type="text/css" href="${path}/css/layout.css"/>
<script type="text/javascript" src="${path}/js/jquery-1.7.2.min.js"></script>
</head>
<body bgcolor="#f9f9f9">
        <!-- head -->
		<c:import url="../include/top.jsp"></c:import>
    	<!--主体-->
    	
    	<div class="wrap f_yh">
        	 <div class="registeredBox" style="margin-top: 0px;border: 1px solid #DFE0E4;border-top-width: 0">
            	<div class="borrow_list_cont f_yh">
                    
                    
                    	<form id="bankProductContacts" action="/bankProduct/buy.htm" method="POST">
	                    	<input type="hidden" name="bankProductId" value="${bankProductId }"/>
	                    	<table cellpadding="0" cellspacing="0" style="width: 100%">
	                    		<tr>
		                            <td colspan="4" class="title_bg"><span></span>认购意向信息</td>
		                        </tr>
		                    	<tr>
		                        	<td class="tAlign_r"><span style="color: red;">*</span>真实姓名：</td>
		                            <td colspan="3">
		                            	<div class="companyBox_greyBox_text"><input type="text" name="linkman" value="" /></div>
		                            </td>
		                        </tr>
		                        <tr>
		                        	<td class="tAlign_r"><span style="color: red;">*</span>手机号码：</td>
		                            <td colspan="3">
		                            <div class="registeredBox_greyBox_text"><input type="text"  name="linkmobile"  value="" /></div>
		                            </td>
		                        </tr>
		                        <tr>
		                        	<td class="tAlign_r"><span style="color: red;">*</span>电子邮箱</td>
		                            <td colspan="3">
		                            <div class="registeredBox_greyBox_text"><input type="text"  name="linkemail"  value="" /></div>
		                            </td> 
		                        </tr>
		                        <tr>
		                        	<td colspan="4" class="tAlign_c">
			                        	<input type="button" onclick="javascript:if(true){void(_submitAction4userInfo(this,'/bankProduct/buy.htm',{}));return false;}" 
			                        	class="bt_ty s_20" style="width: 20%;padding: 15px" value="保存" />&nbsp;&nbsp;&nbsp;&nbsp;
			                        	<input type="button" onclick="javascript:void(history.back(-1))" 
			                        	class="bt_ty s_20" style="width: 20%;padding: 15px"  value="返回"/>
		                        	</td>
		                        </tr>
		                    </table>
	                    </form>
                   </div>
                   </div>
                 </div> 
    	<!--主体-->
    	<!--foot-->
        <c:import url="../include/foot.jsp"></c:import>
        <!--foot--> 
	
<script type="text/javascript">
function _submitAction4userInfo(obj, action, params) {
	var submitForm;
	while ((obj.parentNode) && (obj.parentNode.tagName)
			&& (!obj.parentNode.tagName.match(/FORM/i))) {
		obj = obj.parentNode;
	}
	submitForm = obj.parentNode;
	if (!submitForm) {
		submitForm = document.createElement("form");
		document.body.appendChild(submitForm);
	}
	submitForm.setAttribute("action", action);
	submitForm.setAttribute("method", "POST");
	for ( var key in params) {
		var hiddenField = document.createElement("input");
		hiddenField.setAttribute("type", "hidden");
		hiddenField.setAttribute("name", key);
		hiddenField.setAttribute("value", params[key]);
		submitForm.appendChild(hiddenField);
	}
	if (submit4userInfo()) {
		submitForm.submit();
	}
		
}
function submit4userInfo() {
	var linkman = $("input[name='linkman']").val();
	var linkmobile = $("input[name='linkmobile']").val();
	var linkemail = $("input[name='linkemail']").val();
	if (linkman == null || linkman == "") {
		alert("请输入真实姓名");
		return false;
	}
	if (linkmobile == null || linkmobile == "") {
		alert("请输入联系手机");
		return false;
	}
	if (linkemail == null || linkemail == "") {
		alert("请输入邮箱");
		return false;
	}
	return true;
}
</script>  
</body>
</html>